<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li>
                    <a href="#"  onclick="loadDiv('mainCenterDiv','${ctx}/drug/drugInoutClass/index')">药品出入库字典列表</a>
                </li>
                <li class="active">
                    <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/drug/drugInoutClass/form')">
                        <c:choose>
                            <c:when test="${drugInoutClass.id==''|| drugInoutClass.id==null}">
                                药品出入库字典添加
                            </c:when>
                            <c:otherwise>药品出入库字典修改</c:otherwise>
                        </c:choose>
                    </a>
                </li>
            </ul>
            <section class="panel panel-default">
                <div class="panel-body">
                    <div class="col-lg-12">
                        <form:form id="inputForm" data-parsley-validate="" modelAttribute="drugInoutClass" onsubmit="return formSaveLoad('mainCenterDiv','inputForm','${ctx}/drug/drugInoutClass/save','${ctx}/drug/drugInoutClass/index');" method="post" class="form-horizontal">
                            <form:hidden path="id"/>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">出入库区分：</label>
                                    <div class="col-sm-4">
                                        <form:select path="inoutType" htmlEscape="false" class="form-control"  maxlength="1" data-parsley-required="true">
                                            <form:option value="" label=""/>
                                            <form:options items="${fns:getDictList('DRUG_INOUT_TYPE')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
                                        </form:select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">入库分类：</label>
                                    <div class="col-sm-4">
                                        <form:select path="type" htmlEscape="false" class="form-control"  maxlength="1" data-parsley-required="true">
                                            <form:option value="" label=""/>
                                            <form:options items="${fns:getDictList('DRUG_STOTARG_TYPE')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
                                        </form:select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">所属类别：</label>
                                    <div class="col-sm-4">
                                        <form:select path="statisticClass" htmlEscape="false" class="form-control"  maxlength="1">
                                            <form:option value="" label=""/>
                                            <form:options items="${fns:getDictList('DRUG_STATISTIC_CLASS')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
                                        </form:select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">库存类型：</label>
                                    <div class="col-sm-4">
                                        <form:select path="storageType" htmlEscape="false" class="form-control"  maxlength="1">
                                            <form:option value="" label=""/>
                                            <form:options items="${fns:getDictList('DRUG_STORAGE_TYPE')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
                                        </form:select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">来源等级：</label>
                                    <div class="col-sm-4">
                                        <form:select path="fromLevel" htmlEscape="false" class="form-control"  maxlength="1">
                                            <form:option value="" label=""/>
                                            <form:options items="${fns:getDictList('DRUG_FROM_LEVEL')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
                                        </form:select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">是否记账：</label>
                                    <div class="col-sm-4">
                                        <form:select path="accountFlag" htmlEscape="false" class="form-control"  maxlength="1">
                                            <form:option value="" label=""/>
                                            <form:options items="${fns:getDictList('YES_NO')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
                                        </form:select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">备注信息：</label>
                                    <div class="col-sm-4">
                                        <form:textarea path="remarks" htmlEscape="false" rows="3" class="form-control"  maxlength="1000"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存">&nbsp;
                                        <input id="btnCancel" class="btn" type="button" value="返 回" onclick="loadDiv('mainCenterDiv','${ctx}/drug/drugInoutClass/index')">
                                </div>
                            </div>
                        </form:form>
                    </div>

                </div>
            </section>
        </div>
    </div>